<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=<device-width>, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">

    </div>
</body>
<script src="https://unpkg.com/vue@next"></script>
<script>
    const myMixin = {
        data() {
            return {
                message1: 'hello myMIxin',
                mixinError: '这是minxinerror'
            }
        },
    }
    const app = Vue.createApp({
        mixins: [myMixin],
        data() {
            return {
                message: 'hello vue.js',
                systeMsg: 'system message'
            }
        },
        template: `
       <div>{{message1}}--
        {{message}}--
        {{mixinError}}--
        {{systeMsg}}--
        </div>
       `,
        created() {
            console.log('app-----> created', this.systeMsg)
        }
    })
    app.mixin({
        data(){
            
        }
    })

    
    app.component('component-demo', {
        template:`
        <div>
            {{mixinError}}    
        </div>
        `

    })






    const vm = app.mount("#app");
</script>

</html>